#include "task_cycle.h"
#include "FreeRTOS.h"
#include "task.h"
#include "rd_data_ctrl.h"
#include "user_app.h"
#include "drv_wdt.h"
#include "hek1016.h"

#define TASK_PRIO_STACKSIZE_50ms 128

static TaskHandle_t task_50ms_handle = NULL;
void Task_50ms(void);

void Task_50ms_init(void)
{
    xTaskCreate((TaskFunction_t)Task_50ms,"50ms_task",TASK_PRIO_STACKSIZE_50ms,NULL,TASK_PRIO_50ms,(TaskHandle_t *)task_50ms_handle);
}

void Task_50ms(void)
{
    while(1)
    {
        
        rd_data_analysis();
        m_modbus_rtu();
		wdt_feed();
        vTaskDelay(50);
    }
}









